package ai.people.netmon.framework.domain.graph.tags;

import ai.people.netmon.framework.domain.graph.BaseTag;
import com.alibaba.fastjson.PropertyNamingStrategy;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 身份证tag
 *
 * @author zhenglin
 * @date 2022/4/25
 */
@Data
@NoArgsConstructor
@JSONType(naming = PropertyNamingStrategy.SnakeCase)
public class IdNumberTag extends BaseTag {
    /**
     * id
     */
    @NotBlank(message = "身份证号不能为空")
    private String number;

    public IdNumberTag(String idNumber) {
        this.number = idNumber;
    }
}
